home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / ColorSync 2.5.1 SDK / Sample Code / CSDemo 2.5 / CSDemoSources / winProfID.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-09-09  |  1.6 KB  |  64 lines  |  [TEXT/CWIE]

  1.  
  2. #ifndef _WINDOWPROFID_
  3. #define _WINDOWPROFID_
  4.  
  5.  
  6. #ifndef __TYPES__
  7. #include <Types.h>
  8. #endif
  9.  
  10. #ifndef __QUICKDRAW__
  11. #include <QuickDraw.h>
  12. #endif
  13.  
  14. #ifndef __CMAPPLICATION__
  15. #include <CMApplication.h>
  16. #endif
  17.  
  18. #ifndef _WIN_
  19. #include "win.h"
  20. #endif
  21.  
  22.  
  23.  
  24. /**\
  25. |**| ==============================================================================
  26. |**| PUBLIC DEFINES
  27. |**| ==============================================================================
  28. \**/
  29. #define kProfIDType                'pfid'            // profID window tag
  30. #define kFileSubType            'file'
  31. #define kEmbededSubType            'embd'
  32. #define kHandleSubType            'hndl'
  33.  
  34.  
  35. /**\
  36. |**| ==============================================================================
  37. |**| PUBLIC TYPEDEFS
  38. |**| ==============================================================================
  39. \**/
  40. typedef struct ProfIDData
  41. {
  42.     CMProfileIdentifier        **IDHdl ;
  43.     unsigned long            Index ;            // if kEmbededSubType then this tells us which one
  44.     unsigned long            Mode ;
  45.  
  46. } ProfIDDataRec, *ProfIDDataPtr, **ProfIDDataHdl ;
  47.  
  48.  
  49. /**\
  50. |**| ==============================================================================
  51. |**| PUBLIC FUNCTION PROTOTYPES
  52. |**| ==============================================================================
  53. \**/
  54. void        winUpdateProfID            ( winHandle win, EventRecord *e) ;
  55. void        winClickProfID            ( winHandle win, EventRecord *e ) ;
  56. void        winMenuProfID            ( winHandle win, long menuResult, Boolean *didit ) ;
  57. void        winUpdateMenusProfID    ( winHandle win ) ;
  58. OSErr        winAllocProfID            ( winHandle win ) ;
  59. OSErr        winOpenProfID            ( winHandle win ) ;
  60. void        winCloseProfID            ( winHandle win ) ;
  61. void        winDisposeProfID        ( winHandle win ) ;
  62.  
  63.  
  64. #endif